
import 'package:demo/view/local_notifi/local_notice_page.dart';
import 'package:demo/view/local_notifi/local_notice_plug.dart';
import 'package:demo/view/lock/lock_page.dart';
import 'package:demo/view/pdf/pdf_generator_page.dart';
import 'package:demo/view/segment/segment_page.dart';
import 'package:flutter/material.dart';
import 'package:get/route_manager.dart';
import 'view/blue/blue_flutter.dart';

void main() {
  LocalNoticePlug.init();
  runApp(const MyApp());
}


class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return GetMaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        fontFamily: 'PingFang',  // Replace with the name you defined in pubspec.yaml
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key});

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
        title: const Text('ListView'),
      ),
      body: ListView(
        children: [
          ElevatedButton(
            onPressed: () {
              Get.to( const BluetoothPage());
            },
            child: const Text('BluetoothPage'),
          ),
          ElevatedButton(
            onPressed: () {
              Get.to( const PdfGenerationPage());
            },
            child: const Text('PdfGenerationPage'),
          ),
          ElevatedButton(
            onPressed: () {
              Get.to( const LocalNoticePage());
            },
            child: const Text('LocalNoticePage'),
          ),
          ElevatedButton(
            onPressed: () {
              Get.to( const SegmentPage());
            },
            child: const Text('SegmentPage'),
          ),
          ElevatedButton(
            onPressed: () {
              Get.to( const LockPage());
            },
            child: const Text('LockPage'),
          ),

        ],
      )
    );
  }
}


